package cn.baage.campus.model.vo;

import cn.baage.campus.constant.validation.AddGroup;
import cn.baage.campus.constant.validation.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Description: 用户基础信息DTO
 * @Author: 八阿哥
 * @url: baage.cn
 * @Version: 1.0
 **/
@Data
public class UserBaseSaveReqVO {

    @NotBlank(message = "用户ID不能为空", groups = {UpdateGroup.class})
    @ApiModelProperty(value = "ID")
    private String id;

    @NotBlank(message = "用户名不能为空", groups = {AddGroup.class})
    @ApiModelProperty(value = "用户名")
    private String username;

    @NotBlank(message = "邮箱不能为空", groups = {AddGroup.class})
    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "用户密码不能为空", groups = {AddGroup.class})
    private String password;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "头像地址")
    private String avatarUrl;


    private String uuid;

    private String captcha;


}
